package com.rustic.server.dto.user;

import cn.xy.commons.enums.YesNoStatus;
import cn.xy.commons.validator.EnumValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class UpdateIsLockDTO {
    /**
     * 会员ids
     */
    @NotNull(message = "请选择会员")
    @Size(min = 1, message = "请选择会员")
    @ApiModelProperty(value = "会员ids", dataType = "List", required = true)
    private List<Integer> ids;

    /**
     * 状态（N否 Y是）
     */
    @EnumValidator(clazz = YesNoStatus.class, message = "请选择正确的状态")
    @ApiModelProperty(value = "状态（N否 Y是）", dataType = "String", required = true)
    private String isLock;
}
